package cn.knight.system.domain;

import cn.knight.basic.domain.BaseDomain;
import cn.knight.org.domain.Department;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author winnie
 * @since 2022-07-11
 */
@Data
public class Menu extends BaseDomain{

    private String name;

    private String component;

    private String url;

    private String icon;

    private Integer index;

    private Long parentId;

    private String intro;

    private Integer state;

    private Menu parent;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    List<Menu> children = new ArrayList<>();

}
